package example

import (
	"context"

	"git.code.oa.com/trpc-go/trpc-database/redis"
)

// CallRedisGet 调用 redis get
func CallRedisGet(ctx context.Context, key string) (string, error) {
	client := redis.NewClientProxy("redis.name")

	return redis.String(client.Do(ctx, "GET", key))
}
